{extend name="layout"}
{block name="detail"}
<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="javascript:history.back(-1)" class="aui-header-item" style="visibility:hidden;">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface">选择支付方式</div>
        </div>
    </div>
    <a href="#" class="aui-header-item-icon" style="min-width:0;visibility:hidden;">
        <i class="aui-icon aui-icon-share-pd"></i>
    </a>
</header>
<section class="aui-me-content">
    <section class="aui-grid-content">
        <div class="aui-grid-row text-center">
            <h2 style="margin-top: 50px;">待支付金额: {$order.totalFee/100} 元</h2>
            <h4 style="text-align: left;margin-left: 6%;margin-bottom: 10px;margin-top: 15px;">选择支付方式</h4>
            {if condition="$order.otype eq 0"}
            {if condition="$user.money egt $order.totalFee"}
            <a href="{:url('pay/Weixin/pay3')}?id={$order.id}" class="aui-grid-row-item"
               style="border:1px solid grey;width: 40%;margin-left: 6%;">
                <img src="__STATIC__/img/qb.png" alt="" width="50">
                <p class="text-center">余额支付</p>
            </a>
            {else}
            <a onclick="alert('余额不足！')" class="aui-grid-row-item"
               style="border:1px solid   grey;width: 40%;margin-left: 6%;">
                <img src="__STATIC__/img/qbg.png" alt="" width="50">
                <p class="text-center">余额支付</p>
            </a>
            {/if}
            {else if condition="$order.otype eq 1"}
            <a onclick="alert('请选择余额以外方式支付！')" class="aui-grid-row-item"
               style="background-color:  grey;line-height:100px;width: 40%;margin-left: 6%;">
                <img src="__STATIC__/img/qbg.png" alt="" width="50">
                <p class="text-center">余额支付</p>
            </a>
            {/if}
            <a href="{:url('pay/Weixin/pay2')}?id={$order.id}" class="aui-grid-row-item"
               style="border:1px solid grey;width: 40%;margin-left: 6%;">
                <img src="__STATIC__/img/wx.png" alt="" width="50">
                <p class="text-center">微信支付</p>
            </a>
        </div>
    </section>
</section>
<div style="height:100px;"></div>

{/block}